lib = lib
build = build
server_src1 = src/server/main
server_src2 = src/server/message
client_src = src/client

main : 
	mkdir build
	gcc -I $(client_src) -o $(build)/Client $(client_src)/*.c
	javac -d $(build) -classpath $(lib)/JAC.jar  $(server_src1)/*.java $(server_src2)/*.java
	
client : 
	./$(build)/Client
	
client_with_HEX : 
	./$(build)/Client -d
	
server : 
	java -cp $(build):$(lib)/JAC.jar main.Server
	
server_with_HEX : 
	java -cp $(build):$(lib)/JAC.jar main.Server -d

clean :
	rm -r build
